home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 31
/
Aminet 31 (1999)(Schatztruhe)[!][Jun 1999].iso
/
Aminet
/
dev
/
gui
/
gtlayout.lha
/
Source
/
LTP_DeleteObjectNode.c
< prev
next >
Wrap
C/C++ Source or Header
|
1998-09-09
|
733b
|
51 lines
/*
** GadTools layout toolkit
**
** Copyright © 1993-1998 by Olaf `Olsen' Barthel
** Freely distributable.
**
** :ts=4
*/
#ifndef _GTLAYOUT_GLOBAL_H
#include "gtlayout_global.h"
#endif
#include "Assert.h"
VOID
LTP_DeleteObjectNode(LayoutHandle *handle,ObjectNode *node)
{
struct Image **ImagePtr = NULL;
switch(node->Type)
{
case PICKER_KIND:
ImagePtr = &node->Special.Picker.Image;
break;
case BUTTON_KIND:
ImagePtr = &node->Special.Button.ButtonImage;
break;
case INCREMENTER_KIND:
ImagePtr = &node->Special.Incrementer.Image;
break;
case TAPEDECK_KIND:
ImagePtr = &node->Special.TapeDeck.ButtonImage;
break;
}
if(ImagePtr)
{
DisposeObject(*ImagePtr);
*ImagePtr = NULL;
}
}